package admin_req

// 请求的规则表单
type RuleForm struct {
	RuleType    string `json:"rule_type" validate:"oneof=menu api"`
	Name        string `json:"name" validate:"max=20,min=1"`
	RouteName   string `json:"route_name" validate:"omitempty,ocName"`
	Perms       string `json:"perms" validate:"ocPerms"`
	IsRedirect  bool   `json:"is_redirect"`
	Redirect    string `json:"redirect" validate:"omitempty,ocPath"`
	Component   string `json:"component" validate:"omitempty,ocPath"`
	Title       string `json:"title" validate:"max=20,min=1"`
	IsHome      bool   `json:"is_home"`
	IsLink      string `json:"is_link" validate:"ocHttps"`
	IsHide      bool   `json:"is_hide"`
	IsFull      bool   `json:"is_full"`
	IsAffix     bool   `json:"is_affix"`
	IsKeepAlive bool   `json:"is_keep_alive"`
	Type        string `json:"type" validate:"omitempty,ocReqType"`
	ReqPath     string `json:"req_path" validate:"omitempty,ocPath"`
}
